package ai.people.netmon.framework.exception.enums;

/**
 * 档案异常枚举
 *
 * @author yuanqinglong
 * @date 2022/2/15 17:16
 */
public enum ArchivesExceptionEnum implements ExceptionEnum{
    ARCHIVES_DOES_NOT_EXIST(false, 400000, "档案不存在！"),
    ARCHIVES_SHARED(false, 400001, "档案已分享不可重复分享！");


    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    ArchivesExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public boolean getStatus() {
        return status;
    }
}
